package com.example.back.exception;

import lombok.Data;

/**
 * @author Jm
 * @date 2024/7/13
 */
@Data
public class ServiceException extends RuntimeException
{
    private final String code;

    public ServiceException(String msg)
    {
        super(msg);
        this.code = "500";
    }

    public ServiceException(String code, String msg)
    {
        super(msg);
        this.code = code;
    }
}
